const defaultState = {
  cityName: ""
}

export default (state = defaultState, action) => {
  const newState=JSON.parse(JSON.stringify(state));
  switch (action.type) {
    case "INITCITY":
      newState.cityName=action.value;
      return newState;
      break;
  
    default:
      break;
  }
  return state
}